cmake_minimum_required(VERSION 3.22)
project(cmake03)
set(CMAKE_CXX_STANDARD 11)
# set(SRC main.cpp add.cpp mul.cpp)
# 搜索源文件
# aux_source_directory(${CMAKE_SOURCE_DIR} SRC)
file(GLOB SRC ${CMAKE_SOURCE_DIR}/*.cpp)
message("## cmake_current_source_dir" ${CMAKE_CURRENT_SOURCE_DIR})
message("## cmake_source_dir" ${CMAKE_SOURCE_DIR})
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
add_executable(app ${SRC})